package main

import "fmt"

func main() {
	ch1 := make(chan int, 3)
	ch1 <- 1 // 把10发送到ch中
	ch1 <- 2
	ch1 <- 3
	elem1 := <-ch1 // 从ch中接收值并赋值给变量elem1
	<-ch1          // 从ch中接收值，忽略结果
	close(ch1)
	fmt.Printf("The first element received from channel ch1: %v\n", elem1)
}
